package cn.stylefeng.guns.sys.modular.syssite.mapper;

import cn.stylefeng.guns.sys.modular.syssite.entity.SysSiteAdmin;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysSiteAdminMapper extends BaseMapper<SysSiteAdmin> {
    void addSiteCity(@Param("siteId") Long siteId, @Param("chargeCodeList") List<String> chargeCodeList, @Param("tenantId") Long tenantId);

    int countByName(@Param("id") String id, @Param("name") String name,@Param("tenantId") Long tenantId);

    int countServiceCode(@Param("id") String id, @Param("cityCode") String cityCode, @Param("tenantId") Long tenantId);

    String getNameByCode(@Param("code") String cityCode);

    void deleteCityCode(@Param("siteId") Long toString);

    Long getSiteByOrgId(@Param("orgId") Long id);
}
